package waker.core;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ImageView;

public class WakerActivity extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ImageView chooseStation = (ImageView) findViewById(R.id.chooseStationImageButton);
        chooseStation.setOnClickListener(this);
        
        ImageView chooseAlarmDestination = (ImageView) findViewById(R.id.chooseAlarmDestinationImageView);
        chooseAlarmDestination.setOnClickListener(this);
        
        ImageView activateMairon = (ImageView) findViewById(R.id.ActivateMaironImageView);
        activateMairon.setOnClickListener(this);
        
        ImageView settings = (ImageView) findViewById(R.id.settingsImageView);
        settings.setOnClickListener(this);
        
    }

	public void onClick(View v) {
		switch(v.getId()){
			case R.id.chooseStationImageButton:
				startActivity(new Intent(this, ChooseStationActivity.class));
				break;
			case R.id.chooseAlarmDestinationImageView:
				break;
			case R.id.ActivateMaironImageView:
				break;
			case R.id.settingsImageView:
				startActivity(new Intent(this, SettingsActivity.class));
				break;
		}
		
	}
}